import Cookies from 'js-cookie';
//定义一个变量带着key
const geekToken = 'geek-pc-90-token';
// 存储token
export const setToken = (token) => {
  return Cookies.set(geekToken, token);
};

// 获取token
export const getToken = () => Cookies.get(geekToken);

// 移除token
export const removeToken = () => Cookies.remove(geekToken);

// 判断是否有token

export const isToken = () => !!Cookies.get(geekToken);
